import { download } from '@/utils/request'
import { useDict } from '@/utils/dict'
import { getConfigKey } from "@/api/system/config"
import { parseTime, resetForm, addDateRange, handleTree, selectDictLabel, selectDictLabels } from '@/utils/ruoyi'

export default function installGlobalMethods(app) {
    app.config.globalProperties.useDict = useDict
    app.config.globalProperties.download = download
    app.config.globalProperties.parseTime = parseTime
    app.config.globalProperties.resetForm = resetForm
    app.config.globalProperties.handleTree = handleTree
    app.config.globalProperties.addDateRange = addDateRange
    app.config.globalProperties.getConfigKey = getConfigKey
    app.config.globalProperties.selectDictLabel = selectDictLabel
    app.config.globalProperties.selectDictLabels = selectDictLabels
}
